package com.zhj.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhj.product.entity.pojo.ItemsParam;
import com.zhj.product.mapper.ItemsParamMapper;
import com.zhj.product.service.ItemsParamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ItemsParamServiceImpl implements ItemsParamService {

    @Resource
    private ItemsParamMapper itemsParamMapper;

    @Override
    public ItemsParam selectParamByItemId(String itemId) {
        LambdaQueryWrapper<ItemsParam> queryWrapper = new QueryWrapper<ItemsParam>().lambda().eq(ItemsParam::getItemId, itemId);
        return itemsParamMapper.selectOne(queryWrapper);
    }
}
